package com.home.fitzx.service;

import com.dexcoder.commons.pager.Pager;
import com.home.fitzx.dto.QueryUserParams;
import com.home.fitzx.entity.User;

public interface UserService {
    
    public Pager findAll(int currentPage, int itemsPerPage);
    
    public Pager findUsers(QueryUserParams params);
    
    public void save(User user);
    
    public void delete(long id);
    
    public void update(User user);
    
    public User getById(long id);
    
    public User findByNameAndPwd(String name, String password);
}
